package ink.teamwork.battery.util;

public class IdWorker {

    private static final ThreadLocal<Sequence> threadLocalIdWorker = ThreadLocal.withInitial(() -> new Sequence(31, 31));

    public static long getNextId() {
        return threadLocalIdWorker.get().nextId();
    }
}    